package com.iocup.keybastion.authorize.element;

import java.util.List;

/**
 * @author xyjxust
 * @create 2022/3/2
 **/
public interface AuthElementStore {

    AuthElementStore put(AuthElement element);

   default   AuthElementStore put(List<AuthElement> elements){
       elements.forEach(e->put(e));
       return this;
   }

    List<AuthElement> get(String key);

    List<AuthElement> getAll();

    void clear();

}
